home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 June: Reference Library / Dev.CD Jun 96 RL / Dev.CD Jun 96 RL.toast / Technical Documentation / develop / develop Issue 25 / develop Issue 25 code / ToolFrontEnd / ToolFrontEnd Source / Common Files / ToolFrontEnd.h next >
Encoding:
C/C++ Source or Header  |  1996-03-04  |  1.8 KB  |  82 lines  |  [TEXT/CWIE]

  1. /*
  2.  *  ToolFrontEnd.h - Tool Server Front End Drop-In Preferences
  3.  */
  4.  
  5. #ifndef _H_ToolFrontEnd
  6. #define _H_ToolFrontEnd
  7.  
  8. #ifndef __TYPES__
  9. #include <Types.h>
  10. #endif
  11.  
  12. #include "DropInCompiler.h"
  13.  
  14.  
  15. #pragma options align=mac68k
  16.  
  17.  
  18. /* this is the name of the panel, as shown in the Finder */
  19. #define kToolFrontEndPanelName    "\pToolFrontEnd Panel"
  20.  
  21.  
  22. /*
  23.  *    AppleScript dictionary info.
  24.  */
  25.  
  26. enum {
  27. /*    Symbolic Name                   Code        AETE Terminology        */
  28.     class_ToolFrontEnd            = 'TSFE',
  29.  
  30.     prefsTFE_IncludeFile        = 'TF01',    /* Project Type            */
  31.     prefsTFE_FileExtension        = 'TF02',    /* Project Type            */
  32.     
  33.     /* enumeration for file extension */
  34.     enumeration_FileExtension    = 'TF03',
  35.     enum_Extension_String        = 'TF04',    /* extension string        */
  36.     enum_Extension_Command        = 'TF05',    /* command string        */
  37.     enum_Extension_Scanner        = 'TF06',    /* scanner                */
  38.     enum_Extension_IncParam        = 'TF07'    /* include parameter    */
  39. };
  40.  
  41.  
  42. /*    This is the structure that is manipulated by the panel. */
  43.  
  44. typedef struct ToolFrontEndPref {
  45.     short            version;            /* version # of prefs data    */
  46.     Str255            scriptIncludeFile;    // the name of the script include file
  47.     short            numExtensions;        // number of extensions
  48.     struct ExtensionEntry
  49.     {
  50.         Str15        extension;            // extension of these files
  51.         Str31        scanner;            // scanner for include files
  52.         Str15        includeFileArg;        // argument prefix for an include file
  53.         Str255        commandTemplate;    // template command for ToolServer
  54.     }                extensions[1];        // array of extensions -- variable sized
  55. } ToolFrontEndPref, **ToolFrontEndPrefHandle;
  56.  
  57.  
  58. // status structure passed around internally
  59.  
  60. #define MAXFOLDERPATHS 128 // get real....
  61.  
  62. typedef struct
  63. {
  64.     CompilerParameterBlock *cpb;
  65.     long linecount;
  66.     short numFolderPaths;
  67.     struct
  68.     {
  69.         short vRefNum;
  70.         long dirID;
  71.         Handle path;
  72.     } folderPaths[MAXFOLDERPATHS];
  73.     struct ScannerStatus *scanStatus;
  74. } ToolFrontEndStatus;
  75.  
  76.  
  77. #pragma options align=reset
  78.  
  79.  
  80. #endif
  81.  
  82.